*********************************************************************************************************************
*************************** The Political Roots of Ageism in Greying Democracies ************************************
********************************************* Master ****************************************************************
*********************************************************************************************************************

// Project: The Political Roots of Ageism in Greying Democracies: Evidence from Italy, South Korea, and the United States
// Version v20250801

clear all
set more off


*********************************************************************************************************************
// 0. DEFINE USER MACHINE
*********************************************************************************************************************


 global mac "Replication_files"
 


*********************************************************************************************************************

* Scott/Luca, here you need to put your main path

if "$mac"=="Replication_files" {
  global path   "YOUR PATH GOES HERE"
	}
	

*********************************************************************************************************************
// 1. DEFINE GLOBALS
*********************************************************************************************************************

global fecha="v20250801"


global path_bases "${path}\Replication_files/v20250801_datasets"
global path_project "${path}\Replication_files"

global path_results "${path}\Replication_files/Output"
capture mkdir "${path_results}"

global path "${path}\Replication_files\v20250801_dofiles"
capture mkdir "${path}"

cd "${path}"



*********************************************************************************************************************
// 2. Project
*********************************************************************************************************************
do 0_1_Bases_to_dta
do 0_2_IAT_Results_to_dta
do 1_Survey_Analysis_USA
do 2_Survey_Analysis_Italy
do 3_Survey_Analysis_korea
do 4_Regressions_draft


***************************************************
***************************************************